<template>
  <div class="container">
    <h1>产品详情</h1>
  </div>
</template>

<script>
import { onMounted, reactive, toRefs } from 'vue'
export default {
  name: 'ProductDetail',
  setup() {
    const state = reactive({})
    const refState = toRefs(state)
    onMounted(() => {
      console.log('onMounted -》 我是有缓存的')
    })
    return {
      ...refState
    }
  }
}
</script>

<style lang="scss" scoped></style>
